package net.towee.client.event.core;

import net.towee.model.account.Board;

import com.google.gwt.event.shared.GwtEvent;

public class BoardCreatedEvent extends GwtEvent<BoardCreatedHandler> {
	public static Type<BoardCreatedHandler> TYPE = new Type<BoardCreatedHandler>();
	private final Board board;
	
	public BoardCreatedEvent(Board result) {
		this.board = result;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<BoardCreatedHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(BoardCreatedHandler handler) {
		handler.onBoardCreated(board);
	}

}
